﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Com.Binaria.SISCOB.Web.View;
using Com.Binaria.SISCOB.Funcional.DTO;
using System.Collections.Generic;
using Com.Binaria.SISCOB.Svc;
using Com.Binaria.Core.Presentacion;

namespace Com.Binaria.SISCOB.Web.Presenter
{
    public class RptPresenter
    {
        ConciliacionSvc svc;
        ContextoDTO ctxDTO;

        public IRptView View { set; get; }

        public RptPresenter(IRptView iRptView)
        {
            View = iRptView;
        }

        public ReporteConciliacionFuncionalDTO GetRptConcFuncional()
        {
            ctxDTO = new ContextoDTO();
            ReporteConciliacionFuncionalDTO reporte = null;

            svc = (ConciliacionSvc)ServiceLocator.getInstance().getObject("ConciliacionSvc");

            reporte = svc.PrepararConciliacion(ctxDTO, View.IdRpt);



            return reporte;
        }
    }
}
